package com.smiier.skin.net;

import java.io.Serializable;
import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.json.JsonDate;
import cn.o.app.net.NetTask;

import com.smiier.skin.net.DoctorTreatmentProjectListTask.DoctorTreatmentProjectItem;
import com.smiier.skin.net.KepuGetZhiliaoListTask.KepuGetZhiliaoListRequest;
import com.smiier.skin.net.KepuGetZhiliaoListTask.KepuGetZhiliaoListResponse;
import com.smiier.skin.util.GlobalSettings;

public class KepuGetZhiliaoListTask extends
		NetTask<KepuGetZhiliaoListRequest, KepuGetZhiliaoListResponse> {

	public static class KepuGetZhiliaoListRequest extends ORequest {
		public String keywords;
	}

	public static class KepuGetZhiliaoListResponse extends
			ArrayList<DoctorTreatmentProjectItem> implements INoProguard,
			Serializable {

	}

	public static class TreatmentProjectItem extends DoctorTreatmentProjectItem
			implements Serializable {

		public String category;
		public int down_payment;
		public String basic_description;
		public String other_description;
		public String cuser;// 患者id
		public JsonDate ctime;

	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL_TREATMENT
				+ "Client/TreatmentProject/searchTreatmentProject";
		mRequestMethod = METHOD_POST;
	}

}
